package tree;

import java.util.HashMap;
import java.util.Map;

public class ScopeRegistry {

	private static Map<String, IdentifierScope> classIdentScopeMap = 
		new HashMap<String, IdentifierScope>();
	
	private static Map<String, MethodScope> classMethodScopeMap = 
		new HashMap<String, MethodScope>();
	
	public static void putMethodScope(String className, MethodScope mS) {
		classMethodScopeMap.put(className, mS);
	}
	
	public static void putIdentifierScope(String className, IdentifierScope iS) {
		classIdentScopeMap.put(className, iS);
	}
	
	public static MethodScope getMethodScope(String className) {
		return classMethodScopeMap.get(className);
	}
	
	public static IdentifierScope getIdentScope(String className) {
		return classIdentScopeMap.get(className);
	}
	
}
